package cn.wawi.entity.sys;
import com.fasterxml.jackson.annotation.JsonFormat;

import cn.wawi.common.annotation.TableField;
import cn.wawi.common.annotation.TableName;
/**
 * sys_resources 实体类
 * 2016-12-19 09:52:58
 */
@TableName(value="sys_resources")
public class Resources{

	/**
	 *注释: id
	 */
	@TableField(value="id",isPrimaryKey=true)
	private Integer id;
	/**
	 *注释: 资源名称
	 */
	@TableField(value="name")
	private String name;
	/**
	 *注释: 资源地址
	 */
	@TableField(value="url")
	private String url;
	/**
	 *注释: parent_id
	 */
	@TableField(value="parent_id")
	private Integer parentId;
	/**
	 *注释: 权限编码
	 */
	@TableField(value="perm_code")
	private String permCode;
	/**
	 *注释: 资源图标
	 */
	@TableField(value="iconCls")
	private String iconCls;
	/**
	 *注释: 资源级别
	 */
	@TableField(value="level")
	private Integer level;
	/**
	 *注释: 排序
	 */
	@TableField(value="sort")
	private Integer sort=9;
	/**
	 *注释: 1菜单 2 权限 
	 */
	@TableField(value="type")
	private String type;
	/**
	 *注释: 1可用 0禁用
	 */
	@TableField(value="status")
	private String status;
	/**
	 *注释: remark
	 */
	@TableField(value="remark")
	private String remark;
	/**
	 *注释: 时间
	 */
	@TableField(value="create_time")
	@JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
	private java.util.Date createTime=new java.util.Date();	public Resources(){}	public Resources(String name,String permCode,String iconCls,int parentId,int level,int sort){		this.status="1";		this.name=name;		this.permCode=permCode;		this.iconCls=iconCls;		this.parentId=parentId;		this.level=level;		this.type="2";		this.sort=sort;	}
	public void setId(Integer id){
		this.id=id;
	}
	public Integer getId(){
		return id;
	}
	public void setName(String name){
		this.name=name==null?null:name.trim();
	}
	public String getName(){
		return name;
	}
	public void setUrl(String url){
		this.url=url==null?null:url.trim();
	}
	public String getUrl(){
		return url;
	}
	public void setParentId(Integer parentId){
		this.parentId=parentId;
	}
	public Integer getParentId(){
		return parentId;
	}
	public void setPermCode(String permCode){
		this.permCode=permCode==null?null:permCode.trim();
	}
	public String getPermCode(){
		return permCode;
	}
	public void setIconCls(String iconCls){
		this.iconCls=iconCls==null?null:iconCls.trim();
	}
	public String getIconCls(){
		return iconCls;
	}
	public void setLevel(Integer level){
		this.level=level;
	}
	public Integer getLevel(){
		return level;
	}
	public void setSort(Integer sort){
		this.sort=sort;
	}
	public Integer getSort(){
		return sort;
	}
	public void setType(String type){
		this.type=type==null?null:type.trim();
	}
	public String getType(){
		return type;
	}
	public void setStatus(String status){
		this.status=status==null?null:status.trim();
	}
	public String getStatus(){
		return status;
	}
	public void setRemark(String remark){
		this.remark=remark==null?null:remark.trim();
	}
	public String getRemark(){
		return remark;
	}
}

